package com.koron.device.mapper;

import com.koron.bean.standard.deviceClasssify.po.BrandStock;
import com.koron.bean.standard.deviceClasssify.po.Type;
import com.koron.bean.system.org.OrgBean;
import com.koron.bean.system.staff.po.AppUserPo;
import com.koron.device.bean.EquipmentParams;
import com.koron.device.bean.TGParams;
import com.koron.device.bean.bo.TypeParamsJs;
import com.koron.device.bean.po.EquipmentParamsPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TypeParamsMapper {

    List<EquipmentParams> getDefaultParams();

    List<EquipmentParams> getBasicParamsByTypeId(@Param("typeId") String typeId);

    List<String> getBasicParamByName(String name);

    List<EquipmentParams> getTechParamsByTypeId(@Param("typeId") String typeId);


    // 查询所有基础参数
    List<TGParams> queryAll();

    // 查询所有技术参数
    List<TypeParamsJs> queryAllJs();

    // 根据参数组获取参数
    List<TGParams> queryByGroupId(@Param("groupId") String groupId);

    // 根据参数名称获取
    List<TGParams> queryByParamName(@Param("paramName") String paramName);

    // 查询所有品牌
    List<BrandStock> queryBrandStocl();

    // 查询所有组织
    List<OrgBean> queryAllOrg();

    // 查询所有人员
    List<AppUserPo> queryAllUser();

    // 查询所有设备分类
    List<Type> queryAllType();

    int updateBatch(List<EquipmentParams> list);

    int batchInsert(@Param("list") List<EquipmentParams> list);
    List<EquipmentParams> searchParamsByName(@Param(value = "paramName") String paramName,@Param(value = "paramType") String paramType);
    List<String> getParamsList(@Param(value = "list")List<EquipmentParamsPo> list,@Param(value = "idList")List<String> idList);
}
